<?php

use Welcomescreen\Agavi\View;

class Frontend_DisplayScreenSuccessView extends View\FrontendBaseView {
	/**
	 * @parameter  AgaviRequestDataHolder $rd
	 * @return     mixed
	 */
	public function executeHtml(\AgaviRequestDataHolder $rd) {
		$this->setupHtml($rd);
		$visit = $this->getAttribute('visit');
		$template = $this->getAttribute('template');
		$this->getLayer('content')->setTemplate(AgaviConfig::get('org.welcomescreen.system.template_dir') . '/' . $template->getFile());
		$this->getContainer()->setAttribute('templateName', $template->getName(), 'org.welcomescreen');
		$this->setAttribute('visitorName', $visit->getVisitorName());
		$this->setAttribute('variables', $visit->getTemplateData());
	}
}

?>